package com.qf.mybatis01.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 *   `id` INT(11) NOT NULL AUTO_INCREMENT,
 *   `name` VARCHAR(50) DEFAULT NULL,
 *   `sex` VARCHAR(1) DEFAULT NULL,
 *   `birthday` DATETIME DEFAULT NULL,
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Passenger {

    private Integer id;

    private String name;

    private String sex;

    private Date birthday;

    // 引用类型，代表当前旅客的护照信息
    Passport passport;

}
